﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Header.aspx.cs" Inherits="NJCORS.Header" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题页</title>
    <style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {
	font-size: 12px;
	color: #000000;
}
.STYLE5 {font-size: 12}
.STYLE7 {font-size: 12px; color: #FFFFFF; }
</style>
<script type="text/javascript">
function SetHomepage(){//设为首页   
   if(document.all){   
      document.body.style.behavior="url(#default#homepage)";   
      document.body.setHomePage('http://'+document.location.host+'/login.aspx');   
   }   
   else if(window.sidebar){   
        if(window.netscape){   
             try{   
                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");   
             }   
             catch(e){   
                 alert("您的浏览器未启用[设为首页]功能，开启方法：先在地址栏内输入about:config,然后将项 signed.applets.codebase_principal_support 值该为true即可");   
             }   
        }   
        var prefs=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);   
        prefs.setCharPref("browser.startup.homepage","http://"+document.location.host+"/login/aspx");   
   }   
}  
function AddFavorite(sURL, sTitle)
{
     try
     {
         window.external.addFavorite(sURL, sTitle);
     }
     catch (e)
     {
         try
         {
             window.sidebar.addPanel(sTitle, sURL, "");
         }
         catch (e)
         {
             alert("加入收藏失败!")
         }
     }
}
</script>


</head>
<body>
    <form id="form1" runat="server">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="76" background="themes/images/bannercenter.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="540" height="76" background="themes/images/banner.gif">&nbsp;</td>
        <td>&nbsp;</td>
        <td width="281" valign="bottom">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="33" height="27"><img src="themes/images/main_05.gif" width="33" height="27" /></td>
            <td width="248" background="themes/images/main_06.gif">
            <table width="225" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="17"><div align="right"><img src="themes/images/sethome.gif" width="69" height="17" onclick="SetHomepage();"/></div></td>
                <td><div align="right"><asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="themes/images/addfavorite.gif" width="69" height="17" onclick="ImageButton2_Click"/></div></td>
                <td><div align="right"><asp:ImageButton ID="ImageButton1" runat="server" 
                        ImageUrl="themes/images/quit.gif" onclick="ImageButton1_Click" />
               </div></td>
              </tr>
            </table>
            </td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="30" background="themes/images/main_31.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" height="30"><img src="themes/images/main_28.gif" width="8" height="30" /></td>
        <td width="147" background="themes/images/main_29.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="24%">&nbsp;</td>
            <td width="43%" height="20" valign="bottom" class="STYLE1"></td>
            <td width="33%">&nbsp;</td>
          </tr>
        </table></td>
        <td width="39"><img src="themes/images/main_30.gif" width="39" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="20" valign="bottom"><span class="STYLE1"><span id="txtunitname" runat="server"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <span id="txtdepartname" runat="server"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="UserName" runat="server"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="rolename" runat="server"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="msg" runat="server"></span></span>
            </td>
            <td valign="bottom" class="STYLE1">
            <div align="right">
            </div></td>
          </tr>
        </table></td>
        <td width="17"><img src="themes/images/main_32.gif" width="17" height="30" /></td>
      </tr>
    </table></td>
  </tr>
</table>
    </form>
</body>
</html>
